<html>
   <head>
     <meta charset="UTF-8">
     <title>详细信息</title>
   </head>
   <body>
   <form method="post" action="search.php" enctype="multipart/form-data">
<?php
require_once('system/dbconn.php');
require_once('system/myfun.php');
 connect();
  $sql = "select * from flower"; 
  if($_POST)
  {
    $key = $_POST['key'];
     $sql = $sql." where GL_title like '%{$key}%' ";
  }
  $result = fetch_array($sql); 
  ?>   
  <table border='1'>
 <tr>
  <th>鲜花标题</th>
   <th>鲜花产地</th>
   <th>鲜花封面图片</th> 
   <th>鲜花简介</th>
</tr>;
<?php
if(is_array($result) && !empty($result)){  
 foreach($result as $row) 
  {
   echo '<tr>';
   echo '<td>'.$row['GL_title'].'</td>';
   echo '<td>'.$row['GL_place'].'</td>';
   echo '<td>'.$row['GL_pic'].'</td>';
   echo '<td>'.$row['GL_intro'].'</td>';
   echo '</tr>';  
  } 
}
?>
</body>
</html>




